package com.zhang.webadmin.controller;

import com.zhang.webadmin.util.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * 退出登录
 */
@RestController
public class LoginOutController {

    @GetMapping("/")
    public R hello(Principal principal) {
        return R.ok(principal);
    }
}
